//public
//protected 肥肉
//private
/* class XiaoJieJie {
    public sex:string
    protected name:string
    private age:number
    public constructor(sex:string,name:string,age:number){
        this.sex=sex
        this.name=name
        this.age=age
    }

    public sayHello(){
        console.log('小哥哥好')
    }
    protected sayLove(){
        console.log("love")
    }
}

var jiejie:XiaoJieJie=new XiaoJieJie('女','张是',12);
console.log(jiejie)
console.log(jiejie.sex)
console.log(jiejie.name)
console.log(jiejie.age)
jiejie.sayHello()
 */
//readonly 

/* class Man{
    public readonly sex:string='男'
}
var man:Man=new Man()
man.sex='女' */